home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
273_01.zip
/
STRIP.CC
< prev
next >
Wrap
Text File
|
1993-04-04
|
284b
|
17 lines
strip(char *str, char c)
/* This will string all occurances of char c out of string pointed to by *str */
{
char *newstr;
newstr = str;
while (*str) {
if (*str != c) {
*newstr=*str;
newstr++;
str++;
}
else str++;
}
*newstr = '\0';
}